﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.Com
{
    /// <summary>
    /// 意见反馈
    /// </summary>
    [Table("feedback")]
    public class Feedback : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 反馈类型
        /// </summary>
        public QuestionType QuestionType { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Required]
        public string Description { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        public string Phone { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string Imgs { get; set; }

    }

    public enum QuestionType:byte
    {
        [Display(Name ="功能异常")]
        Abnormal,
        [Display(Name ="体验问题")]
        Experience,
        [Display(Name ="功能建议")]
        Suggest,
        [Display(Name ="其他")]
        Other
    }
}
